<?php
/**
 * @package	Acymailing for Joomla!
 * @version	4.0.1
 * @author	acyba.com
 * @copyright	(C) 2009-2012 ACYBA S.A.RL. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><div id="acy_content" >
<style type="text/css">
table#printstats{
	background-color: white;
	border-collapse: collapse;
}
#printstats th, #printstats td{
	border: 1px solid #CCCCCC;
	padding: 4px;
}

#printstats thead{
	background-color: #5471B5;
	color: white;
}

</style>

<div id="chart" style="margin-top:30px;width:100%"></div>
<?php
	if(!empty($this->export)){
		$lists = explode(',',$this->export[0]);
		echo '<table id="printstats"><thead><tr>';
		for($i=0;$i<count($lists);$i++){
					echo '<th>'.$lists[$i].'</th>';
		}
		echo '</tr></thead><tbody>';
		foreach($this->export as $exportNumber => $oneExport){
			if($exportNumber == '0') continue;
			$total = explode(',', $this->export[$exportNumber]);
			echo '<tr>';
			for($i=0;$i<count($total);$i++){
				echo '<td align="center">'.$total[$i].'</td>';
			}
			echo '</tr>';
		}
		echo '</tbody></table>';

	}
?>
</div>
